using System.ComponentModel.DataAnnotations;

namespace AdministracijaDataLayer
{
    partial class AdministracijaDataContext
    {
        public AdministracijaDataContext() :
            base(Common.Properties.Settings.Default.ConnectionString, mappingSource)
        {
            OnCreated();
        }
    }

    partial class Jezik
    {
        

        partial void OnNazivChanging(string value)
        {
            if (string.IsNullOrEmpty(value)) throw new ValidationException("Obavezno polje!");
        }

       
    }


    partial class Grupa
    {
        partial void OnNazivChanging(string value)
        {
            if (string.IsNullOrEmpty(value)) throw new ValidationException("Obavezno polje!");
        }
    }
}
